package com.sxy.dto;

/**  
* @ClassName: SeckillResult  
* @Description: TODO(所有ajax请求的返回类型,封装json结果)  
* @author xy
* @date 2017年12月10日  
*  
* @param <T>  
*/ 
public class SeckillResult<T> {

	private boolean success;
	
	private T date;
	
	private String error;

	public SeckillResult(boolean success, T date) {
		super();
		this.success = success;
		this.date = date;
	}

	public SeckillResult(boolean success, String error) {
		super();
		this.success = success;
		this.error = error;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public T getDate() {
		return date;
	}

	public void setDate(T date) {
		this.date = date;
	}

	public String getError() {
		return error;
	}

	public void setError(String error) {
		this.error = error;
	}
	
	
}
